package ssl.speech;

public class Line {
	int id = 0;
	int refId = -1;
	String tag = "None";
	String text = "";

	public Line(int id, int refId, String tag, String text) {
		super();
		this.id = id;
		this.refId = refId;
		this.tag = tag;
		this.text = text;
	}

	public String toString() {

		return id + ")" + refId + ")  [" + this.tag + "]" + ": " + text;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getRefStr() {
		return (new Integer(refId)).toString();
	}

	public String getText() {
		return text;
	}

	public String getIdStr() {
		return (new Integer(id)).toString();
	}

	public String[] getInfo() {
		String str[] = new String[4];

		str[0] = new Integer(id).toString();
		str[1] = new Integer(refId).toString();
		str[2] = tag;
		str[3] = text;
		return str;
	}
}
